<?php
namespace Common\Model;

class ModelException extends \Exception
{
    private $errorCode;
    private $errorMessage;

    public function __construct($errorCode, $errorMessage)
    {
        parent::__construct("($errorCode){$errorMessage}");
        $this->errorCode = $errorCode;
        $this->errorMessage = $errorMessage;
    }

    public function getErrorCode()
    {
        return $this->errorCode;
    }

    public function getErrorMessage()
    {
        return $this->errorMessage;
    }
}